From f32b5caf311e6fedc1a22048a04b3724939142d0 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 31 Mar 2009 11:16:01 +0100 Subject: [PATCH] xend: Save the state of PPCIs after hot-plug events. Signed-off-by: Yosuke Iwamatsu --- tools/python/xen/xend/XendNode.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/python/xen/xend/XendNode.py b/tools/python/xen/xend/XendNode.py index 61779fa77e..1a40735cba 100644 --- a/tools/python/xen/xend/XendNode.py +++ b/tools/python/xen/xend/XendNode.py @@ -363,6 +363,8 @@ class XendNode: ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) XendPPCI(ppci_uuid, ppci_record) + self.save_PPCIs() + def remove_PPCI(self, pci_name): # Update lspci info @@ -373,6 +375,8 @@ class XendNode: ppci_ref = XendPPCI.get_by_sbdf(domain, bus, slot, func) XendAPIStore.get(ppci_ref, "PPCI").destroy() + self.save_PPCIs() + def add_PSCSI(self): # TODO -- 2.30.2